package map;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class LinkedHashMapDemo {
    public static void main(String[] args) {
        HashMap<String,Integer>map=new LinkedHashMap<>(10,0.75F,false);
        map.put("语文",90);
        map.put("数学",96);
        map.put("英语",99);
        map.put("物理",97);
        map.put("化学",92);
        System.out.println(map);
        Integer value=map.get("数学");
        System.out.println(value);
        System.out.println(map);

        value=map.get("英语");

        System.out.println(map);
    }
}
